package com.zp.drug.service;

import com.zp.common.myBatis.core.page.PageQuery;
import com.zp.common.myBatis.core.page.TableDataInfo;
import com.zp.drug.entity.bo.DrugSupplierCataBo;
import com.zp.drug.entity.vo.DrugSupplierCataVo;

import java.util.Collection;
import java.util.List;

/**
 * 药品供应商生产商维护Service接口
 *
 * @author zhang peng
 * @ date 2023-05-31
 */
public interface IDrugSupplierCataService {

    /**
     * 查询药品供应商生产商维护
     */
    DrugSupplierCataVo queryById (String id);

    /**
     * 查询药品供应商生产商维护列表(分页)
     */
    TableDataInfo<DrugSupplierCataVo> queryPageList (DrugSupplierCataBo bo, PageQuery pageQuery);

    /**
     * 查询药品供应商生产商维护列表(不分页)
     */
    List<DrugSupplierCataVo> queryList (DrugSupplierCataBo bo);

    /**
     * 修改药品供应商生产商维护
     */
    DrugSupplierCataBo insertByBo (DrugSupplierCataBo bo);

    /**
     * 修改药品供应商生产商维护
     */
    Boolean updateByBo (DrugSupplierCataBo bo);

    /**
     * 校验并批量删除药品供应商生产商维护信息
     */
    Boolean deleteWithValidByIds (Collection<String> ids, Boolean isValid);

    /**
     * 刷新缓存（药品供应商生产商）
     */
    void refreshCacheDrugSupplierCata ();
}
